﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace RndMaterialDisposalService.Models
{
    [Table("CapitalRepairBusinessData")]
    public class CapitalRepairBusinessDataModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public string SysId { get; set; }
        /// <summary>
        /// 流程编号
        /// </summary>
        public string? ProcessFolio { get; set; }
        /// <summary>
        /// 流程实例号
        /// </summary>
        public string? ProcInstId { get; set; }
        /// <summary>
        /// 送修人Id
        /// </summary>
        public string? SongCarRenUserId { get; set; }
        /// <summary>
        /// 送修人姓名
        /// </summary>
        public string? SongCarRenName { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string? ContactNumber { get; set; }
        /// <summary>
        /// 公司段
        /// </summary>
        public string? CompanySegment { get; set; }
        /// <summary>
        /// 资产编号
        /// </summary>
        public string? AssetNo { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string? DepartmentName { get; set; }
        /// <summary>
        /// 资产名称
        /// </summary>
        public string? AssetName { get; set; }
        /// <summary>
        /// 计量属性
        /// </summary>
        public string? MeasurementAttribute { get; set; }
        /// <summary>
        /// 部门编码
        /// </summary>
        public string? DepartmentNumber { get; set; }
        /// <summary>
        /// 出厂编号\机身序列号
        /// </summary>
        public string? FactoryNo { get; set; }
        /// <summary>
        /// 供应商名称
        /// </summary>
        public string? SupplierName { get; set; }
        /// <summary>
        /// 损害日期
        /// </summary>
        public DateTime? DamageTime { get; set; }
        /// <summary>
        /// 资产启用日期
        /// </summary>
        public DateTime? AssetActivationTime { get; set; }
        /// <summary>
        /// 自行询价情况
        /// </summary>
        public string? SelfInquiry { get; set; }
        /// <summary>
        /// 故障现象描述
        /// </summary>
        public string? FaultDescription { get; set; }
        /// <summary>
        /// 使用状况描述
        /// </summary>
        public string? UsageDescription { get; set; }
        /// <summary>
        /// 故障原因
        /// </summary>
        public string? CauseOfFailure { get; set; }
        /// <summary>
        /// 部门经理ID
        /// </summary>
        public string? NotesUserId { get; set; }
        /// <summary>
        /// 部门经理
        /// </summary>
        public string? NotesID { get; set; }
        /// <summary>
        /// 维修接口人Id
        /// </summary>
        public string? MaintenanceContactPersonUserId { get; set; }
        /// <summary>
        /// 维修接口人(维修安排）
        /// </summary>
        public string? MaintenanceContactPerson { get; set; }
        /// <summary>
        /// 是否风险评估
        /// </summary>
        public string? IsRiskAssessment { get; set; }
        /// <summary>
        /// 原值
        /// </summary>
        public decimal? OriginalValue { get; set; }
        /// <summary>
        /// 净值
        /// </summary>
        public decimal? NetWorth { get; set; }
        /// <summary>
        /// 使用年限
        /// </summary>
        public string? ServiceLife { get; set; }
        /// <summary>
        /// 历史维修次数
        /// </summary>
        public string? HistoricalMaintenanceCount { get; set; }
        /// <summary>
        /// 维修工程师ID
        /// </summary>
        public string? MaintenanceEngineerUserId { get; set; }
        /// <summary>
        /// 维修工程师
        /// </summary>
        public string? MaintenanceEngineerName { get; set; }
        /// <summary>
        /// 收到实物时间
        /// </summary>
        public DateTime? ReceivedInKindTime { get; set; }
        /// <summary>
        /// 开始维修时间
        /// </summary>
        public DateTime? MaintenanceStartTime { get; set; }
        /// <summary>
        /// 维修电子流与实物送修信息是否一致
        /// </summary>
        public string? IsInformationConsistency { get; set; }
        /// <summary>
        /// 承诺周期
        /// </summary>
        public string? CommitmentCycle { get; set; }
        /// <summary>
        /// 仪器品牌
        /// </summary>
        public string? InstrumentBrand { get; set; }
        /// <summary>
        /// 仪器型号
        /// </summary>
        public string? InstrumentModel { get; set; }
        /// <summary>
        /// 保修期内
        /// </summary>
        public string? WithinTheWarrantyPeriod { get; set; }
        /// <summary>
        /// 委外维修
        /// </summary>
        public string? SubcontractingRepair { get; set; }
        /// <summary>
        /// 维修商名称
        /// </summary>
        public string? MaintainerName { get; set; }
        /// <summary>
        /// 维修（维修工程师）-联系电话
        /// </summary>
        public string? RepairContactNumber { get; set; }
        /// <summary>
        /// 委外送走日期
        /// </summary>
        public DateTime? OutsourcingDeliveryDate { get; set; }
        /// <summary>
        /// 供应商邮箱
        /// </summary>
        public string? SupplierEmail { get; set; }
        /// <summary>
        /// 委外完成日期
        /// </summary>
        public DateTime? SubcontractingCompletionDate { get; set; }
        /// <summary>
        /// 维修服务商反馈摘要
        /// </summary>
        public string? FeedbackSummary { get; set; }
        /// <summary>
        /// 维修费用
        /// </summary>
        public string? MaintenanceCosts { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal? Price { get; set; }
        /// <summary>
        /// 故障现象确认
        /// </summary>
        public string? FaultPhenomenonConfirmation { get; set; }
        /// <summary>
        /// 维修实施情况
        /// </summary>
        public string? MaintenanceImplementation { get; set; }
        /// <summary>
        /// 操作注意事项
        /// </summary>
        public string? OperationPrecautions { get; set; }
        /// <summary>
        /// 采购部门验证费用人员Id
        /// </summary>
        public string? PurchaseDepartmentExpensesUserId { get; set; }
        /// <summary>
        /// 采购部门验证费用
        /// </summary>
        public string? PurchaseDepartmentExpenses { get; set; }
        /// <summary>
        /// 部门权签人审批费用人员Id
        /// </summary>
        public string? DepartmentApprovalExpenseUserId { get; set; }
        /// <summary>
        /// 部门权签人审批费用
        /// </summary>
        public string? DepartmentApprovalExpense { get; set; }
        /// <summary>
        /// 回执人员Id
        /// </summary>
        public string? ReceiptPersonnelUserId { get; set; }
        /// <summary>
        /// 回执人员
        /// </summary>
        public string? ReceiptPersonnel { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 部门权签人审批日期
        /// </summary>
        public DateTime? DepartmentSignatureDate { get; set; }
        /// <summary>
        /// 最终采购价格
        /// </summary>
        public decimal? FinalPurchasePrice { get; set; }
        /// <summary>
        /// 供应商名称-第5步
        /// </summary>
        public string? VerificationSupplierName { get; set; }
    }
}
